package UI.actions;

import java.io.File;

import javax.swing.JFileChooser;
import javax.swing.JFrame;
/**
 * @date Apr. 16, 2012
 * @author Francisco José Martínez López
 * Open a new window to visualize a file that already exists in your workspace
 */
public class OpenFile extends GeneralActionToFile{


	public OpenFile(){
		jFrame = new JFrame();
		fileChooser = new JFileChooser();
		jFrame.add(fileChooser);
		
		fileChooser.showOpenDialog(jFrame);
		// cuidado file puede ser nuelo
//		file = fileChooser.getSelectedFile();
		
//		System.out.println("Trying open: "+ file.getPath());
	}
}
